package com.li.widget;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

import com.ndboo.reslibrary.R;

/**
 * Author: Li
 * Date: 2017/9/13 0013
 * Description:
 */

public class ShopDetailItem extends FrameLayout {
    public ShopDetailItem(@NonNull Context context) {
        this(context,null);
    }

    public ShopDetailItem(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init(context,attrs);
    }

    private TextView mTxtLeft;
    private TextView mTxtRight;
    private void init(Context context, AttributeSet attrs) {
        View view= LayoutInflater.from(context).inflate(R.layout.layout_shop_detail_item,this);
        mTxtLeft=view.findViewById(R.id.txt_left);
        mTxtRight=view.findViewById(R.id.txt_right);
    }

    public void setTxtLeftContent(String content){
        mTxtLeft.setText(content);
    }
    public void setTxtRightContent(String content){
        mTxtRight.setText(content);
    }
}
